// 改去 1.js 的fuzy
function test(person) {
    let obj = {
        ...person,
    }
    obj.age = 26;
    return obj;
}
const p1 = {
    name: 'yck',
    age: 25
}

const p2 = test(p1);
console.log(p1);// { name: 'yck', age: 25 }
console.log(p2);// { name: 'yck', age: 26 }